package com.wicket.okrcalc.biz.service.dto.common;

import com.wicket.okrcalc.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc PrepareForLowWeightAndDataDto
 * @使用场景
 */
@Data
public class PrepareForLowWeightAndDataDto
  extends BaseDto
  implements Serializable {

  /**
   * 归属内容表主键ID
   */
  @ApiModelProperty("归属内容表主键ID")
  private String entityId;

  /**
   * 数据值结果
   */
  @ApiModelProperty("数据值结果")
  private Double dataResult;

  /**
   * 权重
   */
  @ApiModelProperty("权重")
  private Double weightValue;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      PrepareForLowWeightAndDataDto that = (PrepareForLowWeightAndDataDto) o;
      return  entityId == that.entityId&&dataResult == that.dataResult&&weightValue == that.weightValue;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), entityId,dataResult,weightValue);
    }

}
